package com.runshu.newsmartark.util;


import com.runshu.newsmartark.entity.InventoryEPCBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/9/8
 * @decs：
 */

public class TagRealList {

    private List<InventoryEPCBean> data = new ArrayList<>();


    public  final void addData(InventoryEPCBean bean) {
        if (bean.getEpc() == null) {
            return;
        }
        for (InventoryEPCBean datum : data) {
            if (bean.getEpc().equals(datum.getEpc())) {
                return;
            }
        }
        data.add(bean);
    }

    public List<InventoryEPCBean> getData(){
        return data;
    }

}